package org.dairy.farms.nandana.core.logic;

import org.dairy.farms.dao.FarmDAO;
import org.dairy.farms.model.Farm;
import org.dairy.farms.nandana.core.logic.FarmManagementLogic;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: gduggira
 * Date: Jun 16, 2011
 * Time: 4:10:26 PM
 */
@Service(value = "farmManagementLogic")
public class FarmManagementLogicImpl implements FarmManagementLogic {
    @Autowired
    FarmDAO farmDAO;
    public List<Farm> getAllFarms() {
        List<Farm> farmsList = null;
        return farmDAO.loadAll();
    }
}
